package cn.mxb.logic.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.mxb.floor.pagination.Result;
import cn.mxb.logic.dao.SysCountDAO;
import cn.mxb.logic.entity.SysCount;
import cn.mxb.logic.service.ISysCountService;

@Service("sysCountService")
public class SysCountServiceImpl  implements ISysCountService {

	@Autowired
	private SysCountDAO sysCountDAO;
	
	
	
	@Override
	public SysCount findByProperty(String property, String value) {
		return sysCountDAO.findByProperty(property, value);
	}

	/**
	 * 分页
	 */
	@Override
	public Result<SysCount> find(SysCount sysCount, int page, int row) {
		return sysCountDAO.find(sysCount, page, row);
	}

	/**
	 * add
	 */
	@Override
	public SysCount add(SysCount sysCount) {
		return sysCountDAO.save(sysCount);
	}


	@Override
	public void delete(int id) {
		sysCountDAO.remove(SysCount.class,id);
	}


	@Override
	public void update(SysCount sysCount) {
		// TODO Auto-generated method stub
		
	}


	@Override
	public List<SysCount> findListByProperty(String property, String value) {
		// TODO Auto-generated method stub
		return null;
	}


	@Override
	public List<SysCount> findAllList() {
		return sysCountDAO.getAll(SysCount.class);
	}


	
}
